package com.jiaai.cloud.user.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author 佳爱网络科技
 * @since 2017-07-28
 */
public class User extends Model<User> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 登录名称
     */
	private String loginName;
    /**
     * 密码
     */
    @JSONField(serialize = false)
	private String password;
    /**
     * 权重
     */
	private String role;
    /**
     * 电子信箱
     */
	private String email;
    /**
     * 手机号码
     */
	private String phone;
    /**
     * 昵称
     */
	private String nickName;
    /**
     * 头像
     */
	private String portrait;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getPortrait() {
		return portrait;
	}

	public void setPortrait(String portrait) {
		this.portrait = portrait;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
